#ifndef _CFILECALENDAR_H_
#define _CFILECALENDAR_H_

#include "ccalendar.h"

namespace buola { namespace bcal {

class CFileCalendar : public CCalendar
{
public:
    CFileCalendar(CCalManager *pManager,int pID);
    virtual ~CFileCalendar();

    virtual img::CColor GetColor();
    virtual std::wstring GetName();
    virtual EType GetType();

private:
    void ParseIcalComponent(icalcomponent *pComponent);
    void ParseVCalendar(icalcomponent *pCal);

    CCalManager *mManager;
//    int mID;

    std::vector<CCalendarEvent*> mEvents;
    std::wstring mName;
    io::CURI mURI;
    img::CColor mColor;
};

/*namespace buola*/ } /*namespace bcal*/ }

#endif
